//
//  WKHeader.h
//  V-Learn
//
//  Created by Apple on 2018/12/25.
//  Copyright © 2018 yxk. All rights reserved.
//

#ifndef WKHeader_h
#define WKHeader_h

//字体大小
#define LBFont(font) [UIFont systemFontOfSize:(font)]

#define ChangeFontNotificationCenterName     @"ChangeFontNotificationCenterName"

//屏幕尺寸
#define HM_ISIPHONEX ([UIScreen mainScreen].bounds.size.height == 812 || [UIScreen mainScreen].bounds.size.height == 896)
#define HM_ISiPHONE5ORSE ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(640, 1136), [[UIScreen mainScreen] currentMode].size) : NO)

#define HM_ISiPHONE4 ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(640, 960), [[UIScreen mainScreen] currentMode].size) : NO)

#define LBScreenBounds  [UIScreen mainScreen].bounds

#define rgba(r, g, b, a) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:a]

//日志打印 上线时去掉
#ifdef DEBUG
#define NSLog( s, ... ) NSLog( @"< %@:(%d) > %@", [[NSString stringWithUTF8String:__FILE__] lastPathComponent], __LINE__, [NSString stringWithFormat:(s), ##__VA_ARGS__] )
#else
#define NSLog( s, ... )
#endif
//字符串是否为空
#define kStringIsEmpty(str) ([str isKindOfClass:[NSNull class]] || str == nil || [str length] < 1 ? YES : NO )

#define LBImage(string)  [UIImage imageNamed:string]


//
#define Screen  [UIScreen mainScreen]
#define SCREEN_WIDTH [[UIScreen mainScreen] bounds].size.width
#define SCREEN_HEIGHT [[UIScreen mainScreen] bounds].size.height
#define AppStatusH [UIApplication sharedApplication].statusBarFrame.size.height
#define ScaleX SCREEN_WIDTH/375.0
#define ScaleY SCREEN_HEIGHT/667.0
#define Scale [UIScreen mainScreen].scale

#define AdaptX(value) ScaleX*(value)



#endif /* WKHeader_h */
